#include "hccodenode.h"
#include <gc.h>

const int NODE_IDENTIFIER = 1;
const int NODE_CONSTANT = 2;
const int NODE_VARDEF = 3;

hccodenode* hccodenode_create(const int type, void* value)
{
    hccodenode* node = (hccodenode*) GC_MALLOC(sizeof(hccodenode));
    node->node_type = type;
    node->value = value;
    return node;
}
